import Layout from '@/layout'

const adminUserRouter = {
  path: '/user',
  component: Layout,
  redirect: 'user',
  meta: { roles: ['admin'], title: 'user', icon: 'custom' },
  children: [
    {
      path: '/user/index',
      component: () => import('@/views/user/index'),
      meta: { title: '人员管理', icon: 'people' }
    },
    {
      path: '/user/add',
      component: () => import('@/views/user/add'),
      meta: { title: '人员管理-添加', icon: 'tree' },
      hidden: true
    },
    {
      path: '/user/edit',
      component: () => import('@/views/user/edit'),
      meta: { title: '人员管理-编辑', icon: 'tree' },
      hidden: true
    },
    {
      path: '/user/info',
      component: () => import('@/views/user/info'),
      meta: { title: '人员管理-详情', icon: 'tree' },
      hidden: true
    }
  ]
}

export default adminUserRouter
